<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<html>
    <head>
        <title>
            SiDatRa - Admin
        </title>
        
        <link rel="stylesheet" href="<?= base_url() ?>style/form.css"/>

    </head>
    <body>
        <h1>
            Mode Admin
        </h1>
        <a href="<?= base_url() ?><?= index_page() ?>/admin/register">Registrasi Pengguna</a>
        <br/>
        <a href="<?= base_url() ?><?= index_page() ?>/admin/change_role">Ubah Role Pengguna</a>
        <br/>
        <br/>
        <a href="<?= base_url() ?><?= index_page() ?>">Login</a>


        <div id="container" align="center">
            <div id="content">
                <div class="FormField" id="FormRegistrasi" align="center">
                    <?php echo form_open('admin/register/daftar'); ?>
                    <table>
                        <tr>
                        <div class="FormText">
                            <td><?php echo form_label('Username : '); ?></td>
                            <td><?php echo form_input($username); ?></td>
                        </div>
                        </tr>
                        <tr>
                        <div class="FormText">
                            <td><?php echo form_label('Password : '); ?></td>
                            <td><?php echo form_input($password); ?></td>
                        </div>
                        <tr>
                        <div class="FormText">
                            <td><?php echo form_label('Nama : '); ?></td>
                            <td><?php echo form_input($nama); ?></td>
                        </div>
                        </tr>
                        <tr>
                        <div class="FormText">
                            <td><?php echo form_label('Alamat : '); ?></td>
                            <td><?php echo form_input($alamat); ?></td>
                        </div>
                        </tr>
                        <tr>
                        <div class="FormText">
                            <td><?php echo form_label('Gaji : '); ?></td>
                            <td><?php echo form_input($gaji); ?></td>
                        </div>
                        </tr>
                        <tr>
                        <div class="FormText">
                            <td><?php echo form_label('Tanggal Lahir : '); ?></td>
                            <td><?php echo form_input($tgllahir); ?></td>
                        </div>
                        </tr>
                        <tr>
                        <div class="FormText">
                            <td><?php echo form_label('Tanggal Masuk : '); ?></td>
                            <td><?php echo form_input($tglmasuk); ?></td>
                        </div>
                        </tr>
                        <tr>
                        <div class="FormText">
                            <td><?php echo form_label('Nomor HP : '); ?></td>
                            <td><?php echo form_input($nohp); ?></td>
                        </div>
                        </tr>
                        <tr>
                        <div id="SubmitReg">
                            <td><?php echo form_submit($submit); ?></td>
                        </div>
                        </tr>
                    </table>
                    <?php echo form_close(); ?>
                </div>
            </div>
        </div>

    </body>
</html>
